package com.sky.controller.user.shop;

import com.sky.result.Result;
import com.sky.service.ShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 42
 * @date 2025/3/31
 * @Description
 */
@RestController
@RequestMapping("/user/shop")
@Slf4j
@Api(tags = "C端-店铺操作接口")
public class UserShopController {

    @Autowired
    private ShopService shopService;

    /**
     * 用户获取店铺营业状态
     * @return
     */
    @GetMapping("/status")
    @ApiOperation("获取营业状态")
    public Result status(){
        return shopService.getShopStatus();
    }
}
